﻿namespace KBEngine
{
    using UnityEngine;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Linq;

    public class Account : AccountBase
    {
        public Account()
        {
        }

        public override void __init__()
        {
            if (isPlayer())
            {
                // 触发登陆成功事件
                Event.fireOut("onLoginSuccessfully", new object[] { this });
            }
        }

        public override void onDestroy()
        {
            if (isPlayer())
            {
                KBEngine.Event.deregisterIn(this);
            }
        }
    }
}
